package com.j2eefast.flowable.bpm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 项目投标登记
 * bpm_bid_opening
 * @author: Figol Liu
 * @date 2020-04-20 22:19
 */
@Data
@TableName("bpm_bid_opening")
public class BpmBidOpeningEntity extends BaseEntity{

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    private String id;

    /**流程实例ID*/
    @TableField(value = "process_instance_id")
    private String processInstanceId;

    /** 标题 */
    @TableField(value = "title")
    private String title;

    /** 优先级 */
    @TableField(value = "priority")
    private String priority;

    /** 附言文本 */
    @TableField(value = "attachment_text")
    private String attachmentText;

    /** 附言链接，废弃 */
    @TableField(value = "attachment_url")
    private String attachmentUrl;

    /** 流程表单ID */
    @TableField(value = "form_id")
    private String formId;


    /** 项目ID */
    @TableField(value = "project_id")
    private String projectId;

    /** 项目经理 */
    @TableField(value = "project_admin")
    private String projectAdmin; //项目经理

    /** 项目所属部门 */
    @TableField(value = "project_dept")
    private String projectDept;  //项目所属部门

    /** 项目名称 */
    @TableField(value = "project_name")
    private String projectName; //项目名称

    /** 委托单位 */
    @TableField(value = "client_company")
    private String clientCompany; //委托单位

    /** 是否中标 */
    @TableField(value = "is_bided")
    private String isBided; //是否中标

    /** 中标金额(元) */
    @TableField(value = "bided_amount")
    private String bidedAmount; //中标金额(元)

    /** 投标保证金来源 */
    @TableField(value = "deposit_from")
    private String depositFrom; //投标保证金来源

    /** 投标保证金金额 */
    @TableField(value = "deposit_amount")
    private String depositAmount; //投标保证金金额

    /** 上传中标通知书名字 */
    @TableField(value = "bided_notice_name")
    private String bidedNoticeName; //上传中标通知书名字

    /** 上传中标通知书地址 */
    @TableField(value = "bided_notice_url")
    private String bidedNoticeUrl; //上传中标通知书地址

    /** 处理意见 */
    @TableField(value = "opinion")
    private String opinion; //处理意见

    /** 状态，目前没有什么用 */
    @TableField(value = "status")
    private String status = "0";

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;

    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;

    /** 备注 */
    @TableField(value = "remark")
    private String remark;

    /** 所有者ID */
    @TableField(value = "user_id")
    private String userId;

    @TableField(exist = false)
    private String formName;

    @TableField(value = "model_key")
    private String modelKey;

}
